package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CcsLectureRecordMapper;
import com.ruoyi.system.domain.CcsLectureRecord;
import com.ruoyi.system.service.ICcsLectureRecordService;

/**
 * 课堂记录管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-21
 */
@Service
public class CcsLectureRecordServiceImpl implements ICcsLectureRecordService 
{
    @Autowired
    private CcsLectureRecordMapper ccsLectureRecordMapper;

    /**
     * 查询课堂记录管理
     * 
     * @param teachingClassNum 课堂记录管理主键
     * @return 课堂记录管理
     */
    @Override
    public CcsLectureRecord selectCcsLectureRecordByTeachingClassNum(Long teachingClassNum)
    {
        return ccsLectureRecordMapper.selectCcsLectureRecordByTeachingClassNum(teachingClassNum);
    }

    /**
     * 查询课堂记录管理列表
     * 
     * @param ccsLectureRecord 课堂记录管理
     * @return 课堂记录管理
     */
    @Override
    public List<CcsLectureRecord> selectCcsLectureRecordList(CcsLectureRecord ccsLectureRecord)
    {
        return ccsLectureRecordMapper.selectCcsLectureRecordList(ccsLectureRecord);
    }

    /**
     * 新增课堂记录管理
     * 
     * @param ccsLectureRecord 课堂记录管理
     * @return 结果
     */
    @Override
    public int insertCcsLectureRecord(CcsLectureRecord ccsLectureRecord)
    {
        return ccsLectureRecordMapper.insertCcsLectureRecord(ccsLectureRecord);
    }

    /**
     * 修改课堂记录管理
     * 
     * @param ccsLectureRecord 课堂记录管理
     * @return 结果
     */
    @Override
    public int updateCcsLectureRecord(CcsLectureRecord ccsLectureRecord)
    {
        return ccsLectureRecordMapper.updateCcsLectureRecord(ccsLectureRecord);
    }

    /**
     * 批量删除课堂记录管理
     * 
     * @param teachingClassNums 需要删除的课堂记录管理主键
     * @return 结果
     */
    @Override
    public int deleteCcsLectureRecordByTeachingClassNums(Long[] teachingClassNums)
    {
        return ccsLectureRecordMapper.deleteCcsLectureRecordByTeachingClassNums(teachingClassNums);
    }

    /**
     * 删除课堂记录管理信息
     * 
     * @param teachingClassNum 课堂记录管理主键
     * @return 结果
     */
    @Override
    public int deleteCcsLectureRecordByTeachingClassNum(Long teachingClassNum)
    {
        return ccsLectureRecordMapper.deleteCcsLectureRecordByTeachingClassNum(teachingClassNum);
    }
}
